<?php
/**
 * Created by IntelliJ IDEA.
 * User: wanglu
 * Date: 2017/9/5
 * Time: 14:45
 */

class AppException extends Exception {

    private $_code;
    private $_msg;
    private $_values;
    
    public function __construct($code, $msg = '', $values = array())
    {
        parent::__construct();
        $this->_code = $code;
        $this->_msg = $msg;
        $this->_values = $values;
    }

    public function __get($name) {
        return $this->$name;
    }

    public function get_code() {
        return $this->_code;
    }

    public function get_message() {
        return $this->_msg;
    }

}